Skip to main content
Skip to main content

Terrain Detail

addTerrainFillLayer

Description

Add terrain fill layer to given terrain

Definition

addTerrainFillLayer(entityId terrainId, string name, string diffuseTexture, string normalTexture, string heightTexture, string displacementTexture, float layerUnitSize, float displacementMaxHeight, float blendContrast, float noiseScale, float fillBlendStart, float porosityAtZeroRoughness, float porosityAtFullRoughness, float firmness, float viscosity, float firmnessWet)

Arguments

entityIdterrainIdterrainId
stringnamefill type name
stringdiffuseTexturediffuse texture filename
stringnormalTexturenormal texture filename
stringheightTextureheight texture filename
stringdisplacementTexturedisplacement texture filename
floatlayerUnitSizesize of texture in worldspace (4.0 is typical)
floatdisplacementMaxHeightmaximum height (+ or -) for displacement texture, in meters
floatblendContrastcontrast value for blending (0.5 is typical)
floatnoiseScalenoise scale for blending (0.5 is typical)
floatfillBlendStartstart of fill layer blending (1.0 means no blending, used for most layers)
floatporosityAtZeroRoughnessporosity when roughness is 0
floatporosityAtFullRoughnessporosity when roughness is 1
floatfirmnessfirmness of the ground 0-1 (used by tyre tracks to determine max depression)
floatviscosityviscosity of the ground 0-1 (used by tyre tracks to determine rate of sinking)
floatfirmnessWetfirmness of the ground when the terrain is wet 0-1